<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0, viewport-fit=cover" />
	<title>set</title>
</head>
<body>
<script>
const set = new Set([1, 1, 2, 3, 4, 4, 5]);

// set.add(1)
// set.add(1)
// set.add(2)
// set.add(3)
// set.add("1")

console.log('set---',set, [...set])

// console.log(set.has(6))


// set.forEach((item, index, self) => {
// 	console.log('-------', item, index, self)
// })

// for (let val of set) {
// 	console.log(`val---`, val)
// }

// for (let v of { name: 'wgm', age: 18 }) {
// 	console.log(`val---`, v)
// }
</script>
</body>
</html>
